/*
 * @Descripttion: 
 * @version: 
 * @Author: cyj
 * @Date: 2023-02-15 18:07:20
 */
import request from '@/utils/request.js'

//获取专辑歌曲
export const getAlbumSongs = (id) => request({
    url: '/album',
    method: 'get',
    params: { id }
})

//获取专辑动态信息,如是否收藏,收藏数,评论数,分享数
export const getAlbumDynamic = (id) => request({
    url: '/album/detail/dynamic',
    method: 'get',
    params: { id }
})

//收藏/取消收藏专辑   t=1 为收藏,其他为取消收藏
export const subAlbum = (id, t) => request({
    url: '/album/sub',
    params: {
        id, t
    }
})